from chernc.treediff.gumtree.actions.model.tree_action import TreeAction
from chernc.treediff.gumtree.tree.tree import TreeLike


class TreeDelete(TreeAction):
    def __init__(self, node: TreeLike):
        super().__init__(node)

    def get_name(self) -> str:
        return "delete-tree"

    def __str__(self) -> str:
        return f"===\n{self.get_name()}\n---\n{self.node.to_tree_string()}"
